var getDate=function(shijianchuo) {//时间日期转换
    function add0(m){return m<10?'0'+m:m };
    //shijianchuo是整数，否则要parseInt转换
    var time = new Date(shijianchuo);
    var y = time.getFullYear();
    var m = time.getMonth()+1;
    var d = time.getDate();
    var h = time.getHours();
    var mm = time.getMinutes();
    var s = time.getSeconds();
    return {
        year:y,
        mounth:add0(m),
        day:add0(d),
        hours:add0(h),
        minutes:add0(mm),
        second:add0(s)
    }
}
export{
    getDate
}